package com.NeuglsWorkStudio.UI.FormElement.Config
{
	import flash.display.DisplayObject;

	public class THoverItemConfig extends TConfig
	{
		public var DisplayIcon:Boolean=true;
		public var Icon:DisplayObject=null;
		public var IconURL:String='';
		public var IconW:Number=16;
		public var IconH:Number=16;
		public var IconDisplayHeight:Number=0; //Icon所能显示的最大高度
		public var IconDisplayWidth:Number=0; //Icon所能显示的最大宽度
		public var CenterIcon:Boolean=true;   //是否在最大宽高内居中icon。
		public var UseIconURL:Boolean=true;
		/**额外的一些数据**/
		public var ExtraData:Object=null;
		
		public var Caption:String='HoverItem';
		public var Enabled:Boolean=true;
		public var EnableChildMouse:Boolean=false;
		
		public var NormalBackColor:int=0x222222;
		public var HoverBackColor:int=0xCCCCCC;
		public var DownBackColor:int=0xCCCCCC;
		public var UpBackColor:uint=0x222222;
		
		public var NormalBackAlpha:Number=1;
		public var HoverBackAlpha:Number=1;
		public var DownBackAlpha:Number=1;
		public var UpBackAlpha:Number=1;
		
		public var NormalBorderSize:Number=1;
		public var NormalBorderColor:int=0xFFFFFF;
		
		public var HoverBorderSize:Number=1;
		public var HoverBorderColor:int=0xFFFFFF;
		
		public var DownBorderSize:Number=1;
		public var DownBorderColor:int=0xFFFFFF;
		
		public var UpBorderColor:int=0xFFFFFF;
		public var UpBorderSize:Number=1;
		
		public var NormalFontName:String='Tahoma';
		public var NormalFontSize:Number=12;
		public var NormalFontColor:int=0xFFFF;
		
		public var DownFontName:String='Tahoma';
		public var DownFontSize:Number=12;
		public var DownFontColor:int=0x000000;
		
		public var HoverFontName:String='Tahoma';
		public var HoverFontSize:Number=12;
		public var HoverFontColor:int=0x000000;
		
		/**当用户点击时会调用OnClick方法，且会将ExtraData传给OnClick**/
		public var OnClick:Function=null;
		public var OnMouseOverDraw:Function=null;//传递回来了一个sprite参数。
		public var OnMouseOutDraw:Function=null;//传递回来了一个sprite参数。
		public var OnMouseDownDraw:Function=null;//传递回来了一个sprite参数。
		
		
		public function THoverItemConfig()
		{
			super();
		}
	}
}